<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        "use strict"
        let obj={
        name:"henq",
        love:["台球","象棋"],
        friends:[
            {name:"喵喵",age:24},
            {name:"丽丽",age:23},
        ]        
    }
    let p=Object.getOwnPropertyDescriptor(obj,"friends");
    let ps=Object.getOwnPropertyDescriptors(obj);
    console.warn("pros",p,ps)
    // 锁定对象：
    Object.freeze(obj);
    // obj.name="hello"
    console.warn("obj",obj)
    function Person(name,age){
        this.name=name+"VVVV";
        this.age=age+50;
        this.show=function(){
            console.log(`hello,${this.name},age:${this.age}`)
            console.log(`hello,${name},age:${age}`)
        }
        this.show();
    }
    let person=new Person("miao",23);
    console.log("person",person)
    console.log("person",person.__proto__)
    console.log("person:constructor",person.__proto__.constructor)
    console.log("person",person.__proto__.constructor.name,)
    </script>
    
</body>
</html>